import 'package:flutter/material.dart';

/// 占位控件
/// 默认为空布局,hasShowTips为true显示提示
class PlaceHolderView extends StatelessWidget {
  bool hasShowTips;

  PlaceHolderView({Key? key, this.hasShowTips = false}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return hasShowTips ? buildContent(context) : Container();
  }

  Widget buildContent(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text(
          "功能开发中...",
          style: Theme.of(context).textTheme.bodyText1,
        ),
      ),
    );
  }
}
